package com.c1802.action;

import com.c1802.dao.Impl.LeaveDaoImpl;
import com.c1802.dao.LeaveDao;
import com.opensymphony.xwork2.ActionSupport;

public class PLAction extends ActionSupport {
    String user_name;
    String user_img;
    String ly;

    @Override
    public String execute() throws Exception {
        System.out.println(user_name+"--"+user_img+"--"+ly);
        LeaveDao dao=new LeaveDaoImpl();
        int num=dao.add(user_name,user_img,ly);
        return SUCCESS;
    }

    public String getUser_name() {
        return user_name;
    }

    public void setUser_name(String user_name) {
        this.user_name = user_name;
    }

    public String getUser_img() {
        return user_img;
    }

    public void setUser_img(String user_img) {
        this.user_img = user_img;
    }

    public String getLy() {
        return ly;
    }

    public void setLy(String ly) {
        this.ly = ly;
    }
}
